ACTOR PlasmaElemental : RGAMonster
{ 
   Health 750
   Speed 13
   Radius 31
   Height 56
   PainChance 128
   Mass 400
   MONSTER
   +NOGRAVITY
   +FLOAT
   +DROPOFF
   +MISSILEEVENMORE
   SeeSound "Pain/Sight"
   PainSound "Pain/Pain"
   DeathSound "Pain/Death"
   ActiveSound "Pain/Active"
   Obituary "%o was fried by a Plasma Elemental."
   States 
   {
   Spawn:
	  PLEM A 0
	  PLEM A 0 Thing_SetSpecial(0,226,613,0,random(30,50))
	  POSS A 0 A_GiveInventory("XPAmount", random(30, 50))
	  POSS P 0 ACS_ExecuteAlways(651,0,0,0,0)
      PLEM A 10 A_Look
      goto Spawn+4
   See:
      PLEM AABBCC 3 A_Chase
      Loop
   Missile: 
      PLEM D 5 A_FaceTarget 
      PLEM E 5 A_FaceTarget 
      PLEM F 1 A_FaceTarget 
      PLEM F 1 A_CustomMissile ("ElementalPlasma", 22, 0, 0) 
      PLEM F 1 A_CustomMissile ("ElementalPlasma", 22, 0, 0) 
      PLEM F 1 A_CustomMissile ("ElementalPlasma", 22, 0, 0) 
      PLEM F 1 A_CustomMissile ("ElementalPlasma", 22, 0, 0) 
      Goto See 
   Pain:
      PLEM G 3
      PLEM G 6 A_Pain
      Goto See
   Death: 
      PLEM H 8 
      PLEM I 8 A_Scream 
      PLEM JK 8 BRIGHT
      PLEM L 8 BRIGHT A_NoBlocking
	  PLEM L 0 ACS_ExecuteAlways(648,0,0,0,0)  
      PLEM L 0 A_CustomMissile ("ElementalPlasma", 32, 0, -180) 
      PLEM L 0 A_CustomMissile ("ElementalPlasma", 32, 0, -160) 
      PLEM L 0 A_CustomMissile ("ElementalPlasma", 32, 0, -140) 
      PLEM L 0 A_CustomMissile ("ElementalPlasma", 32, 0, -120) 
      PLEM L 0 A_CustomMissile ("ElementalPlasma", 32, 0, -100) 
      PLEM L 0 A_CustomMissile ("ElementalPlasma", 32, 0, -80) 
      PLEM L 0 A_CustomMissile ("ElementalPlasma", 32, 0, -60) 
      PLEM L 0 A_CustomMissile ("ElementalPlasma", 32, 0, -40) 
      PLEM L 0 A_CustomMissile ("ElementalPlasma", 32, 0, -20) 
      PLEM L 0 A_CustomMissile ("ElementalPlasma", 32, 0, 0) 
      PLEM L 0 A_CustomMissile ("ElementalPlasma", 32, 0, 20) 
      PLEM L 0 A_CustomMissile ("ElementalPlasma", 32, 0, 40) 
      PLEM L 0 A_CustomMissile ("ElementalPlasma", 32, 0, 60) 
      PLEM L 0 A_CustomMissile ("ElementalPlasma", 32, 0, 80)
      PLEM L 0 A_CustomMissile ("ElementalPlasma", 32, 0, 100) 
      PLEM L 0 A_CustomMissile ("ElementalPlasma", 32, 0, 120)
      PLEM L 0 A_CustomMissile ("ElementalPlasma", 32, 0, 140) 
      PLEM L 0 A_CustomMissile ("ElementalPlasma", 32, 0, 160)
      PLEM M 8 
      Stop 
   } 
}

ACTOR ElementalPlasma
{
	Radius 13
	Height 8
	Speed 25
	Damage 3
	Projectile 
	+RANDOMIZE
	RenderStyle Add
	Alpha 0.75
	SeeSound "baby/attack"
	DeathSound "baby/shotx"
	Decal ArachnotronScorch
	States
	{
	Spawn:
		APLS AB 5 BRIGHT
		Loop
	Death:
		APBX ABCDE 5 BRIGHT
		Stop
	}
}

